#include <windows.h>
#include <stdio.h>

typedef struct tagpixel{
    BYTE    b;
    BYTE    g;
    BYTE    r;
}PIXEL;

typedef struct tagrcpixel{
    BYTE    b;
    BYTE    g;
    BYTE    r;
}RCPIXEL;


typedef struct tagyuvpixel{
    BYTE    y;
    BYTE    u;
    BYTE    v;
}YUVPIXEL;



/*-----------io-----------------------*/
void* ciLoadBitmap(char* filename);
void ciSaveBitmap(void* ptr, char *filename);
int ciGetFileSize(void* ptr);

/*-----------info-----------------------*/
void ciGetImageSize(void* ptr, int *width, int *height);
int ciGetImageBitCount(void* ptr);
PIXEL* ciGetImageArray(void* ptr);

/*-----------fn----------------------------*/

void ciRgb2yuv(PIXEL *rc1,PIXEL *yuv);
void ciYuv2rgb(PIXEL *yuv1,PIXEL* rgb);


